/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package figuras;

/**
 *
 * @author 66785338
 */
public class Circulo extends Figura{
    
    private double radio;
    
    @Override
    public double area() {
        double pi=3.141516;
        double area=pi*getRadio()*getRadio();
        return area;
    }

    /**
     * @return the radio
     */
    public double getRadio() {
        return radio;
    }

    /**
     * @param radio the radio to set
     */
    public void setRadio(double radio) {
        this.radio = radio;
    }
}
